#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int* selfDividingNumbers(int left, int right, int* returnSize) {
    int len = right - left + 1;
    int *ret = (int*)malloc(len * sizeof(int));
    *returnSize = 0;
    for (int i = left; i <= right; i++) {
        int num = i;
        while (num != 0) {
            if (num % 10 == 0 || (i % (num % 10) != 0)) {
                break;
            }
            num /= 10;
        }
        if (num == 0) {
            ret[*returnSize] = i;
            *returnSize += 1;
        }
    }
    return ret;
}

int main(){

	return 0;
}